package com.qianfeng.xinyihezi.xinyihezi.utils;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 作者：王加威 on 2016/11/13 17:45
 */

public class MyGridView extends GridView{


    public MyGridView(Context context) {
        super(context);
    }

    public MyGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MyGridView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE>>2,MeasureSpec.AT_MOST));
    }
}
